package com.elink.enginerring.postbar.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.elink.enginerring.postbar.PostbarCo;
import com.elink.enginerring.postbar.entity.Postbar;

public interface PostbarMapper {
    int deleteByPrimaryKey(String postbarId);

    int insert(Postbar record);

    int insertSelective(Postbar record);

    Postbar selectByPrimaryKey(String postbarId);

    int updateByPrimaryKeySelective(Postbar record);

    int updateByPrimaryKeyWithBLOBs(Postbar record);

    int updateByPrimaryKey(Postbar record);

	List<Postbar> selectList(@Param("co")PostbarCo co);

	int selectCount(@Param("co")PostbarCo co);

	@Update("update  post_bar set auth_status = #{authStatus} where find_in_set(postbar_id,#{ids})")
	void addAuth(@Param("ids")String ids,@Param("authStatus")int authStatus);
}